<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="layout" content="main" />
		<title><g:message code="install.label"/></title>
		
		<g:javascript library="jquery"/>
		
		<g:setProvider library="jquery"/>
	</head>
	
	<body>
		<div style="margin-left:10px">
		  
			<h1><g:message code="install.label"/></h1>
			
			<g:if test="${flash.message}">
				<div class="message">${flash.message}</div>
			</g:if>
			
			<g:hasErrors bean="${meeting}">
				<div class="errors">
					<g:renderErrors bean="${metting}" as="list" />
				</div>
			</g:hasErrors>
			
			<div>
			  <table><tr><td style="width:250px;">
				<g:message code=""/><g:message code="install.init.sys.data.message" default="Init system data."/>: </td>
			  <td>
			  <g:formRemote name="initSystem" url="[controller:'install',action:'initSystemData']" update="console">
				  <input type="submit" name="btnInitSystem" value="${message(code:'default.button.start.label')}" style="width:100px;"/>
			  </g:formRemote>
			  </td></tr></table>
			</div>

			<div>&nbsp;</div>
			
			
			<g:if test="${needInitDemoData}">
			  <div>
				<table><tr><td style="width:250px;"><g:message code=""/><g:message code="install.init.demo.data.message" default="Init demo data."/>: </td>
				<td>
				  <g:formRemote name="initDemo" url="[controller:'install',action:'initDataForDemo']" update="console">
					  <input type="submit" name="btnInitDemo" value="${message(code:'default.button.start.label')}" style="width:100px;"/>
				  </g:formRemote>
				</td></tr></table>
			  </div>

			  <div>&nbsp;</div>
			</g:if>

			<g:if test="${needInitTestData}">
			  <div>
				<table><tr><td style="width:250px;"><g:message code=""/><g:message code="install.init.test.data.message" default="Init test data."/>: </td>
				<td>
				  <g:formRemote name="initTest" url="[controller:'install',action:'initDataForTest']" update="console">
					  <input type="submit" name="btnInitTest" value="${message(code:'default.button.start.label')}" style="width:100px;"/>
				  </g:formRemote>
				</td></tr></table>
			  </div>

			  <div>&nbsp;</div>
			</g:if>

			<g:if test="${needInitAllData}">
			  <div>
				<table><tr><td style="width:250px;"><g:message code=""/><g:message code="install.init.all.data.message" default="Init all data."/>: </td>
				<td>
				  <g:formRemote name="initAll" url="[controller:'install',action:'initAllData']" update="console">
					  <input type="submit" name="btnInitAll" value="${message(code:'default.button.start.label')}" style="width:100px;"/>
				  </g:formRemote>
				</td></tr></table>
			  </div>

			  <div>&nbsp;</div>
        
			</g:if>

			<g:if test="${needClearAllData}">
			  <div>
				<table><tr><td style="width:250px;"><g:message code=""/><g:message code="install.clear.all.data.message" default="Clear all data."/>: </td>
				<td>
				  <g:formRemote name="clearData" url="[controller:'install',action:'clearAllData']" update="console">
					  <input type="submit" name="btnClear" value="${message(code:'default.button.start.label')}" style="width:100px;"/>
				  </g:formRemote>
				</td></tr></table>
			  </div>
			
			  <div>&nbsp;</div>
			</g:if>
			
			
			<div class="console" id="console"></div>
			

		</div>
	</body>
</html>
